STEP 11: Notice that we took away most of your code. Let's change our program to use a loop.

Remember, commands that are INSIDE a loop have a purple block next to them, like this: ····

Any command that should be part of the loop needs to be indented.

  • Click on the LOGIC tab and then go to . Drag out Loop with Range.
  • In SUBJECT, go to and drag out Random Skyscraper . Drop it so that it's INSIDE the for loop.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)